package com.han.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Date;
@Entity
@TableName(value = "User")
@Data
@Table(name = "User")
public class User {

    @TableId(value = "ID",type = IdType.AUTO)
    @Id
    private Integer id;

    @TableField(value = "name")
    @Column(name = "name")
    private String name;

    @TableField(value = "age")
    @Column(name = "age")
    private Integer age;

    @TableField(value = "birth")
    @Column(name = "birth")
    private Date birth;

    @TableField(value = "remark")
    @Column(name = "remark")
    private String remark;
}
